legal thinking